<template>
  <div class="inside-page">
    <div class="success">
      <div class="check"></div>
      <h1>支付成功</h1>
      <p class="text">
        报名成功，请耐心等待后台审核，审核周期预计3-5个工作日，您可在「我的」-「订单中心」查看该订单审核状态。
      </p>

      <div class="submit">
        <button class="confirm" type="button" @click="jumpTo(1)">
           查看订单状态
        </button>
        <button class="cancel" type="button" @click="jumpTo(2)">
          返回首页
        </button>
      </div>
    </div>
  </div>
</template>

<script>

export default {
  asyncData: ({ req }) => ({
  }),
  components: {},
  data () {
    return {

    }
  },
  head () {
    return {
      titleTemplate: (titleChunk) => {
        return `${titleChunk} - 大学生找工作、找实习`;
      }
    }
  },
  created () {

  },
  mounted () {
  },
  watch: {

  },
  computed: {

  },
  methods: {
    jumpTo (index) {
      const path = index === 1 ? '/order' : '/';
      const query = index === 1 ? {active: 2} : {}
      this.$router.push({
        path,
        query
      })
    }
  },
}
</script>

<style lang="scss" scoped>
.inside-page {
  width: 100%;
  position: relative;
  .success {
    margin-top: 80px;
  }
  .check {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto;
    background: rgba(71, 113, 220, .5);
    border-radius: 50%;
  }
  .check::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 45px;
    width: 90px;
    height: 50px;
    border: 8px solid #fff;
    border-radius: 6px;
    border-top: none;
    border-right: none;
    background: transparent;
    transform: rotate(-45deg);
  }
  h1 {
    color: $base-color;
    font-size: 48px;
    height: 65px;
    line-height: 65px;
    margin: 30px 0;
    text-align: center;
  }
  .text {
    font-size: 14px;
    color: #666;
    text-align: center;
  }
}
</style>
